import DashView from '../views/Dash.vue'
import LoginView from '../views/Login.vue'
import NotFoundView from '../views/404.vue'

// Import Views - Dash
import DashboardView from '../views/dash/Dashboard.vue'
import TablesView from '../views/dash/Tables.vue'
import TasksView from '../views/dash/Tasks.vue'
import SettingView from '../views/dash/Setting.vue'
import AccessView from '../views/dash/Access.vue'
import ServerView from '../views/dash/Server.vue'
import ReposView from '../views/dash/Repos.vue'

// Routes
const routes = [
	{
		name:'Login',
		path: '/login',
		component: LoginView
	}, {
		path: '/',
		component: DashView,
		meta:{
			requiresAuth:true
		},
		children: [
			{
				path: '',
				component: require('../views/dash/ShopManagement'),
				name: '餐厅',
				meta:{
					description: '餐厅'
				}

			},
			{
				path: '/approvalManagement',
				component: require('../views/dash/ApprovalManagement'),
				name: '审批',
				meta:{
					description: '审批'
				}

			},
			{
				path: '/approvalRecord',
				component: require('../views/dash/ApprovalRecord'),
				name: '审批记录查询',
				meta:{
					description: '审批记录查询'
				}

			},
			{
				path: '/blacklist',
				component: require('../views/dash/Blacklist'),
				name: '黑名单管理',
				meta:{
					description: '黑名单管理'
				}

			},
			{
				path: '/repayment',
				component: require('../views/dash/RepaymentManagement'),
				name: '还款管理',
				meta:{
					description: '还款管理'
				}

			},
			{
				path: '/user',
				component: require('../views/dash/UserManagement'),
				name: '用户管理',
				meta:{
					description: '用户管理'
				}

			},
			{
				path: '/level',
				component: require('../views/dash/Level'),
				name: '等级管理',
				meta:{
					description: '等级管理'
				}

			},
			{
				path: '/dataReport/onlineSigning',
				component: require('../views/dash/__DataReport/OnlineSigning'),
				name: '实时网签',
				meta:{
					description: '实时网签'
				}

			},
			{
				path: '/dataReport/authorizationAmount',
				component: require('../views/dash/__DataReport/AuthorizationAmount'),
				name: '授权额度信息上报',
				meta:{
					description: '授权额度信息上报'
				}

			},
			{
				path: '/dataReport/loanContract',
				component: require('../views/dash/__DataReport/LoanContract'),
				name: '贷款合同信息上报',
				meta:{
					description: '贷款合同信息上报'
				}

			},
			{
				path: '/dataReport/loanOrigination',
				component: require('../views/dash/__DataReport/LoanOrigination'),
				name: '贷款发放信息上报',
				meta:{
					description: '贷款发放信息上报'
				}

			},
			{
				path: '/dataReport/loanRecovery',
				component: require('../views/dash/__DataReport/LoanRecovery'),
				name: '贷款回收信息上报',
				meta:{
					description: '贷款回收信息上报'
				}

			},
			{
				path: '/dataReport/repaymentPlan',
				component: require('../views/dash/__DataReport/RepaymentPlan'),
				name: '还款计划信息上报',
				meta:{
					description: '还款计划信息上报'
				}

			},
			{
				path: '/dataReport/improperUserinfo',
				component: require('../views/dash/__DataReport/ImproperUserinfo'),
				name: '非正常客户信息上报',
				meta:{
					description: '非正常客户信息上报'
				}

			},
			{
				path: '/dataReport/signingDocument',
				component: require('../views/dash/__DataReport/SigningDocument'),
				name: '网签文件上报',
				meta:{
					description: '网签文件上报'
				}

			},
			{
				path: '/dataReport/reportResult',
				component: require('../views/dash/__DataReport/ReportResult'),
				name: '上报结果查询',
				meta:{
					description: '上报结果查询'
				}

			},
			{
				path: '/itemScore/age',
				component: require('../views/dash/__ItemScore/Age'),
				name: '年龄',
				meta:{
					description: '年龄'
				}

			},
			{
				path: '/itemScore/education',
				component: require('../views/dash/__ItemScore/Education'),
				name: '学历',
				meta:{
					description: '学历'
				}

			},
			{
				path: '/itemScore/companyNature',
				component: require('../views/dash/__ItemScore/CompanyNature'),
				name: '公司性质',
				meta:{
					description: '公司性质'
				}

			},
			{
				path: '/itemScore/marriage',
				component: require('../views/dash/__ItemScore/Marriage'),
				name: '性别与婚姻情况',
				meta:{
					description: '性别与婚姻情况'
				}

			},
			{
				path: '/itemScore/seniority',
				component: require('../views/dash/__ItemScore/Seniority'),
				name: '工龄',
				meta:{
					description: '当前单位工作年限（年）'
				}

			},
			{
				path: '/itemScore/loanDuration',
				component: require('../views/dash/__ItemScore/LoanDuration'),
				name: '贷款期限',
				meta:{
					description: '贷款期限（月）'
				}

			},
			{
				path: '/itemScore/salaryMode',
				component: require('../views/dash/__ItemScore/SalaryMode'),
				name: '发薪方式',
				meta:{
					description: '发薪方式'
				}

			},
			{
				path: '/tables',
				component: TablesView,
				name: 'Tables',
				meta:{
					description: 'Simple and advance table in CoPilot',
				}

			}, {
				path: '/tasks',
				component: TasksView,
				name: 'Tasks',
				meta:{
					description: 'Tasks page in the form of a timeline'
				}

			}, {
				path: '/setting',
				component: SettingView,
				name: 'Settings',
				meta:{
					description: 'User settings page'
				}

			}, {
				path: '/access',
				component: AccessView,
				name: 'Access',
				meta:{
					description: 'Example of using maps'
				}

			}, {
				path: '/server',
				component: ServerView,
				name: 'Servers',
				meta:{
					description: 'List of our servers'
				}

			}, {
				path: '/repos',
				component: ReposView,
				name: 'Repository',
				meta:{
					description: 'List of popular javascript repos'
				}

			}
		]
	}, {
		// not found handler
		name:'NotFound',
		path: '*',
		component: NotFoundView
	}
]

export default routes
